package com.dog.basics.service.mtkj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dog.basics.bean.dto.admin.mtkj.ShopGoodTypeFromDto;
import com.dog.basics.bean.dto.api.mtkj.ApiShopGoodTypeAddDto;
import com.dog.basics.bean.dto.api.mtkj.ApiShopGoodTypeEditDto;
import com.dog.basics.bean.model.mtkj.MtShopGoodType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.vo.admin.mtkj.ShopGoodTypeFromVo;
import com.dog.basics.bean.vo.api.mtkj.ApiShopGoodsTypeVo;
import com.dog.basics.common.util.PageParam;


/**
 * <p>
 * 店铺商品类型表 服务类
 * </p>
 *
 * @author wph
 * @since 2020-11-09
 */
public interface IMtShopGoodTypeService extends IService<MtShopGoodType> {

    /**
     * 根据id查询店铺信息
     * @param id
     * @return
     * @author hangdy
     */
    IPage<ApiShopGoodsTypeVo> findAllByShopId(PageParam page, Long id);

    /**
     * 新增
     * @return
     * @author hangdy
     */
    Boolean saveShopGoodType(ApiShopGoodTypeAddDto shopGoodTypeAddDto);

    /**
     * 修改
     * @param shopGoodTypeEditDto
     * @return
     * @author hangdy
     */
    Boolean editShopGoodType(ApiShopGoodTypeEditDto shopGoodTypeEditDto);

    /**
     * 删除
     * @param id
     * @return
     * @author hangdy
     */
    Boolean deleteGoodType(Long id);
    /**
     * Admin服务
     *  删除商铺商品类别
     * @param: id
     * @returns 
     * @author hangdy
     * @date: 2020/11/14 15:23
     */ 
    Boolean adminDeleteShopGoodType(Long id);

    /**
     * Admin服务
     *  查询商铺商品类别列表
     * @param: id
     * @returns 
     * @author hangdy
     * @date: 2020/11/14 16:58
     */
    IPage<ShopGoodTypeFromVo> adminFindShopGoodTypeList(PageParam page , ShopGoodTypeFromDto dto);
}
